package com.hibase.demo.util;

import cn.hutool.core.util.StrUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.codec.digest.DigestUtils;

/**
 * @author chenfeng
 * @version 1.0
 * @date 2021/8/30 16:18
 * @des https://gitee.com/cheershi
 */
@Slf4j
public class TestUtil {

    private String a;

    public static void main(String[] args) {
        String appId = "lenovo_msd";
        String appsecret = "dQ6LMx&Ip!HkOf4H";
        String timestamp = "1630316365";
        String nonce = "12";
        String requestJson = "{\"test\":\"test\"}";
        log.info(DigestUtils.sha1Hex(StrUtil.concat(true, appId,appsecret, timestamp, nonce, requestJson)));
    }
}
